From: Jo-Philipp Wich Date: Tue, 31 Jul 2018 18:36:27 +0000 (+0200) Subject: Revert "build: compile with -ffunction-sections, -fdata-sections and LTO" X-Git-Url: http://git.openwrt.org/%22http:/oss.oetiker.ch/rrdtool//%22/%22http:/oss.oetiker.ch/rrdtool/%22?a=commitdiff_plain;h=65b8333f5b66f8812c1ed21a4d5b28a576e6ba63;p=project%2Fiwinfo.git Revert "build: compile with -ffunction-sections, -fdata-sections and LTO" This reverts commit a51413988caaff7001f47c8a62bff11a72ca48bc. It causes assertion failures in ld and requires changes to linked libraries, so drop this for now. Signed-off-by: Jo-Philipp Wich --- diff --git a/Makefile b/Makefile index d4f0f00..715c03e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ IWINFO_BACKENDS = $(BACKENDS) -IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -ffunction-sections -fdata-sections -flto -Iinclude -IWINFO_LDFLAGS = -Wl,-gc-sections -flto -luci -lubox -lubus +IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude +IWINFO_LDFLAGS = -luci -lubox -lubus IWINFO_LIB = libiwinfo.so IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared